package test;

public class OOPhigh {
    public static void main(String args[]){
        Child c1 =new Child();
        c1.count++;
        Child c2 =new Child();
        c2.count++;
        System.out.print(c2.count);
    }
}

class Child{
    static int count=0;
}

class main{
    public static void main(String[] args) {
        b b1 = new c();
        System.out.println(b1.a);
        b1.show();
        System.out.println(b1.t);
    }
}

class a{

    static int a = 10;

    static{
        System.out.println("a");
    }
}

class b extends a{
    String t ="bb";
    void show(){

    }
    static {
        System.out.println("b");
    }
}

class c extends b{
    void show(){
        System.out.println(super.t);
    }
    String t = "cc";
    {
        System.out.println("new c");
    }
    static {
        System.out.println("c");
    }
}